<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body ng-app="myApp">
		
		<div id="" ng-controller="firstCntl">
			
			<div ng-click="alertOne()">show 1</div>
			
			
		</div>
		
		<script src="../../../js/angular1.0.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var myApp = angular.module('myApp',[]);
			
			myApp.factory('myFirstFactory',function(secondFactory){
				
				return{
					star:function(){
						console.log("staring:===========>"+secondFactory.name )
					}
				}
			});
			myApp.factory("secondFactory",function(){
				return {
					name:"leon"
				}
			})
			var firstCntl = function($scope,myFirstFactory){
				
				myFirstFactory.star();
				
			}
			
		</script>
	</body>
</html>